package org.suk.dp.mediator;

import java.text.MessageFormat;

/**
 * Description: <br/>
 * @version V1.0  2017/6/22 11:12  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class ConcreteColleague2 extends Colleague {
    public ConcreteColleague2(Mediator mediator) {
        super(mediator);
    }
    @Override
    public void send(String message) {
        this.mediator.send(message,this);
    }
    @Override
    public void notify(String message) {
        System.out.println(MessageFormat.format("同事2得到信息:{0}",message));
    }
}
